package cn.itlaobing.springboot.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class SeeHelloController {
	Log log = LogFactory.getLog(SeeHelloController.class);
	
	@Value("{msg.huahuaxiji}")
	private String huahuaxiji;
	
	
	@GetMapping("/Hello")
	public String seeHello(Model model){
		
		model.addAttribute("aaa","huahuaxiji");
		return "hello";
	}

}
